import React, { Component } from 'react';
import PropTypes from 'prop-types';

import styles from './style.scss';
import { noop } from '@utils';

export default class Icon extends Component {

    static propTypes = {
        className: PropTypes.any,
        type: PropTypes.string
    };
    render() {
        console.log(this.props.type);
        let cls = styles.icon;
        const { style } = this.props;
        return (
            <i className={`${styles.icon} ${styles[this.props.type]}`} style={style}></i>
        );
    }
}

